package com.miaoxie.forum.module.im.shared.entity;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by miaoxie on 2017/8/19.
 */
public class IMInitEntity {
    Integer code;
    String msg;
    Map<String,Object> data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, Object> getData() {
        if(this.data == null){
            data = new HashMap<>();
        }
            return data;


    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public void dataMapPut(String key,Object val){
        if(this.data == null){
            this.data = new HashMap<>();
        }
        data.put(key,val);
    }
}
